<?php

class Application_Form_Projet extends Zend_Form
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
    	
    	$Nom = new Zend_Form_Element_Text('Nom');
    	$Nom->setRequired(true);
    	$Nom->setLabel('Nom');
    	 
    	$desc = new Zend_Form_Element_Textarea('desc');
    	$desc->setRequired(true);
    	$desc->setLabel('discription');

    	$Regional= new Zend_Form_Element_Multiselect("Regional");
    	$Regional->setLabel("Regional")
    	->addDecorator('HtmlTag',array('tag' => 'div', 'id' => 'diplomediv') );
    	$Regional->setAttrib("ondblclick", "AjaxLoading('geteltgov',this.value,'Regional')");
    	 
    	$Regionalreg=new Application_Model_DbTable_Governeras();
    	$Regionals=$Regionalreg->selectForOptions();
    	 
    	foreach ($Regionals['data'] as $key => $value){
    		$Regional->addMultiOption($value['key'], ($value['value']));
    	}
    	 
    	
    	$sendBt = new Zend_Form_Element_Submit('submit');
    	$sendBt->setLabel('Enregistrer');
    	
    	
    	$this->addElements(array($Nom,$Regional,$desc,$sendBt));
    	
    }


}

